package com.lagou.demo.controller;

import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LagouAutowired;
import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;

/**
 * 无权限控制的接口类
 *
 * @author yingchengpeng
 */
@LagouController
@LagouRequestMapping("/demo")
public class NoSecurityDemoController {

    @LagouAutowired
    private IDemoService demoService;

    @LagouRequestMapping("/anyone")
    public String anyone() {
        return demoService.sayHello("", "本接口是任何人都能访问的");
    }

}
